package com.hmo.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hmo.entity.User;
import com.hmo.mapper.UserMapper;
import com.hmo.service.UserService;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author hmo
 * @since 2020-11-22
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

    @Override
    public void insertUser() {
        User user = new User();
        user.setIsBan(1);
        user.setPhone("123456789");
        getBaseMapper().insert(user);
    }
}
